import request from '@/utils/request'

const api_name = '/assets/tableInfo'

export default {
  getTableInfoList(data,page,limit) {
    return request({
      url: `${api_name}/listTableInfo/${page}/${limit}/`,
      method: 'get',
      params: data
    })
  },
  getTableInfoByName(tableName) {
    return request({
      url: `${api_name}/query/${tableName}`,
      method: 'get'
    })
  },
  getQueryList() {
    return request({
      url: `${api_name}/queryList`,
      method: 'get'
    })
  },
}
